package com.iflytek.day11._02_Extend.p01;

public class Test {
  public static void main(String[] args) {
    Teacher teacher = new Teacher();
    teacher.setName("老师");
    teacher.setAge(31);
    teacher.setSalary(1000.99);
    System.out.println(teacher.getName());
    System.out.println(teacher.getAge());
    System.out.println(teacher.getSalary());
    teacher.teach();

    BanZhuRen bzr = new BanZhuRen();
    bzr.setName("班主任");
    bzr.setAge(28);
    bzr.setSalary(1000.99);
    System.out.println(bzr.getName());
    System.out.println(bzr.getAge());
    System.out.println(bzr.getSalary());
    bzr.admin();

    Student stu = new Student();
    stu.setName("学生");
    stu.setAge(21);
    // stu.setSalary(1000.99); // stu没有薪水属性，报错！
    System.out.println(stu.getName());
    System.out.println(stu.getAge());
  }
}